package IC.lir.Instrunction;

public abstract class MoveArrayInstruction extends Instruction {
	
	private boolean _isRead;
	private ArrayMemory _obj;
	private Data _expretion;
	
	protected MoveArrayInstruction(boolean isRead, ArrayMemory obj, Data expretion)
	{
		_isRead = isRead;
		_obj = obj;
		_expretion = expretion;
	}
	
	public String toString()
	{
		return _isRead ? 
				String.format("MoveArray %s,%s", _obj.toString(), _expretion.toString())
			:
				String.format("MoveArray %s,%s", _expretion.toString(), _obj.toString());
	}
}
